package com.dream.springmvc.value;

import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author zhaoshichang
 */
@AllArgsConstructor
@Data
public class TextValue implements Value<String> {
    private String value;

    @JsonCreator
    public static TextValue fromJson(String val) {
        return new TextValue(val);
    }
}
